package com.system.comm.util;

public class GenerId {

	private long workerId = 1L;

	private long datacenterId = 1L;

	private static Snowflake flake = null;
	public String getId(){
		if(flake == null) {
			flake = new Snowflake(workerId, datacenterId);
		}
		return String.valueOf(flake.nextId());
	}

}
